﻿using System;
using System.IO;

namespace AppThree
{
    public class Logger
    {
        private const String DEFAULT_NAME = "log.txt";
        private readonly StreamWriter writer;

        public Logger()
        {
            writer = File.AppendText(DEFAULT_NAME);
        }

        public void Log(String message)
        {
            if (String.IsNullOrEmpty(message))
                return;

            writer.WriteLine(message);
        }
    }
}
